<?php

class Application_Form_Login extends Zend_Form
{

    public function init()
    {     
       $html = new Zend_Form_Element_Hidden('html');
        $html->setLabel('<center><h1>ACCESO</h></center>')
             ->setIgnore(true)
             ->addDecorator('Label', array('escape' => false));
        
        $user = new Zend_Form_Element_Text ('nick');
        $user->class = 'input';
        $user->setAttrib("id", "user_login");
        $user->setLabel('Usuario:');
        $user->addValidator('alpha');
        $user->setErrorMessages(array('messages' => 'El campo nombre solo puede contener letras'));

        $password = new Zend_Form_Element_Password ('pass');
        $password->class = 'input';
        $password->setAttrib("id", "user_pass");
        $password->setLabel('Contrasena:');
        $password->addValidator('alpha');
        $password->setErrorMessages(array('messages' => 'El campo nombre solo puede contener letras'));


        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib("id", "wp-submit");
        $submit->setAttrib("style", "background: #21759B;color:#fff;padding:10px;");
        $submit->setAttrib("class", "button-primary");
        
        $submit->setLabel('Ingresar');

        $this->addElements(array($html,$user, $password, $submit));
    }


}

